
<span jwcid="@MainBorder">


    <fieldset jwcid="@For" source="ognl:testData" value="ognl:currentTestData" element="fieldset">

        <legend><span jwcid="@Insert" value="ognl:currentTestData.name"></span></legend>

        <em><span jwcid="@Insert" value="ognl:currentTestData.instructions"/></em>

        <span jwcid="@If" condition="ognl:currentTestData.emailCertificate" src="images/checked.gif" element="image"/><image jwcid="@Else" src="images/close.gif" element="image"/> Email Certificate to Test Taker<br/>
        <span jwcid="@If" condition="ognl:currentTestData.randomizeQuestions" src="images/checked.gif" element="image"/><image jwcid="@Else" src="images/close.gif" element="image"/>Randomize Questions<br/>
        <span jwcid="@If" condition="ognl:currentTestData.randomizeAnswers" src="images/checked.gif" element="image"/><image jwcid="@Else" src="images/close.gif" element="image"/>Randomize Answers<br/>

        Use # of Questions: <span jwcid="@Insert" value="ognl:currentTestData.numberOfQuestionsToUse"/><br/>
        Continue with # Correct: <span jwcid="@Insert" value="ognl:currentTestData.numberCorrectToPass"/><br/>

        Test Correction: <span jwcid="@If" condition="ognl:currentTestData.clearIncorrectAnswer" src="images/checked.gif" element="image"/><image jwcid="@Else" src="images/close.gif" element="image"/> Clear the Incorrect Answer(s)<br/>

        <span jwcid="@If" condition="ognl:currentTestData.logTestResults" src="images/checked.gif" element="image"/><image jwcid="@Else" src="images/close.gif" element="image"/>Test is Bookmarkable<br/>
        <span jwcid="@If" condition="ognl:currentTestData.activateNextButton" src="images/checked.gif" element="image"/><image jwcid="@Else" src="images/close.gif" element="image"/>Enable 'Next' button (User will be able to skip test scoring after at least one submit)<br/>

        <hr/>

        <ol class="questionList">

            <li jwcid="@For" source="ognl:currentTestData.questions" value="ognl:currentQuestion" element="li">

                <table width="100%">
                    <tr>
                        <td colspan="2">
                            <span jwcid="@Insert" value="ognl:currentQuestion.question">[QUESTION]</span>
                        </td>
                    </tr>

                    <tr>
                        <td width="40%">
                            <br>
                            <ol type="A">
                                <span jwcid="@For" keyExpression="id" element="li" source="ognl:currentQuestion.answers" value="ognl:currentAnswer">
                                    <span jwcid="@Any" class="ognl:currentAnswer.correct? 'correct' : null">
                                        <span jwcid="@Insert" value="ognl:currentAnswer.answer != null? currentAnswer.answer : ' '">[ANSWER]</span>
                                    </span>
                                </span>
                            </ol>
                        </td>

                        <td>
                            <div jwcid="@PieChart" service="answerHitService" parameters="ognl:#{ @org.braintrain.tapestry.services.AnswerHitService@QUESTION_ID : currentQuestion.id, @org.braintrain.tapestry.services.AnswerHitService@NULL_LABEL : 'unspecified' }" class="graph"></div>
                        </td>
                    </tr>

                </table>

            </li>
        </ol>
        <br/>
    </fieldset>

</span>